home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Tools - Objects / Installation Folder / MacsBug Install < prev    next >
Text File  |  1990-07-23  |  2KB  |  54 lines

  1. #    M A C S B U G   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1990 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install either MacsBug 6.1 or 6.2b1 from the 
  7. #    E.T.O. #1 distribution compact disk into a folder called "MacsBug Folder"
  8. #    on the destination hard disk. 
  9. #
  10. #    Options: None
  11. #
  12. #    This script makes use of the following Shell variables:
  13. #
  14. #    {CDVolume}        - the name of the CD Distribution volume
  15. #
  16. #    {SystemFolder}    - the path to the folder containing the currently active System
  17. #
  18. #    {DestVolume}    - the name of the volume from which the Installer was launched
  19. #
  20. #    {MacsBugOption}    - a flag used to indicate which version of MacsBug to install
  21.  
  22.  
  23. If    "{MacsBugOption}" == "1"        ### install MacsBug 6.1
  24.     set Source    "{CDVolume}Tools - Objects:MacsBug:MacsBug 6.1:"
  25. Else If    "{MacsBugOption}" == "2"    ### install MacsBug 6.2a4
  26.     set Source    "{CDVolume}Tools - Objects:MacsBug:MacsBug 6.2a4:"
  27. Else
  28.     Exit 1
  29. End
  30.  
  31. ###    First, copy Macsbug into the System Folder
  32.  
  33. if "`Exists -f "{SystemFolder}MacsBug"`"
  34.     if "`Exists -f "{SystemFolder}MacsBug.Old"`"
  35.         Delete -y "{SystemFolder}MacsBug.Old"
  36.     End
  37.  
  38.     Rename "{SystemFolder}MacsBug" "{SystemFolder}MacsBug.Old"
  39. End
  40.  
  41. Duplicate -y "{Source}MacsBug" "{SystemFolder}MacsBug"
  42.  
  43. ###    Now, copy the rest of the stuff
  44.  
  45. if "`Exists -d "{DestVolume}MacsBug Folder"`"
  46.     if "`Exists -d "{DestVolume}MacsBug Folder.Old"`"
  47.         Delete -y "{DestVolume}MacsBug Folder.Old"
  48.     End
  49.      
  50.     Rename "{DestVolume}MacsBug Folder" "{DestVolume}MacsBug Folder.Old"
  51. End
  52.  
  53. Duplicate -y "{Source}" "{DestVolume}MacsBug Folder:"
  54.